<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">

    <title>添加</title>
    <meta name="keywords" content="">
    <meta name="description" content="">
    <script src="../../../../lib/include.js"></script>

    <style>
        .form-control{margin-bottom: 8px;}
        .form-control:focus,
        .single-line:focus { border-color: #0e9aef !important;}
        .radio-inline {line-height: 5px;}
    </style>
</head>
<body class="gray-bg">
<div class="wrapper wrapper-content" id="app" v-cloak>

    <div class="ibox float-e-margins">
        <div class="ibox-content">
            <form id="Form" autocomplete="off">
                <div style="padding: 0">
                    <input type="hidden" name="id">
                    <input type="hidden" name="version" value="0">
                    <div class="form-group">
                        <label class="col-sm-2 control-label">名称</label>
                        <div class="col-sm-10">
                            <input type="text" class="form-control" name="name" placeholder="请输入名称">
                        </div>
                    </div>
                    <div class="form-group">
                        <label class="col-sm-2 control-label">积分配置类别</label>
                        <div class="col-sm-10">
                            <select class="form-control" name="type" :disabled="isDisAble">
                                <option v-for="(item,index) in selects" :value="item.keyS">{{item.keyValue}}</option>
                            </select>
                        </div>
                    </div>
                    <div class="form-group">
                        <label class="col-sm-2 control-label">内容值</label>
                        <div class="col-sm-10">
                            <input type="text" min="0" oninput="value=value.replace(/[^\d(\.\d{1,2})]/g,'')" class="form-control" name="content" placeholder="请输入内容值">
                        </div>
                    </div>
                    <div class="form-group">
                        <label class="col-sm-2 control-label">描述说明</label>
                        <div class="col-sm-10">
                            <textarea name="description" class="form-control" rows="3" placeholder="请输入公告内容">{{desc}}</textarea>
                        </div>
                    </div>
                    <div class="form-group">
                        <label class="col-sm-2 control-label">是否有效</label>
                        <div class="col-sm-10">
                            <select class="form-control" name="status">
                                <option value="0">无效</option>
                                <option value="1" selected>有效</option>
                            </select>
                        </div>
                    </div>
                    <div class="form-group">
                        <label class="col-sm-2 control-label">排序</label>
                        <div class="col-sm-10">
                            <input type="number" class="form-control" value="100" name="sort" placeholder="请输入排序（数字大的排在前面）">
                        </div>
                    </div>
                    <div class="form-group">
                        <label class="col-sm-2 control-label">校区</label>
                        <div class="col-sm-10">
                            <select class="form-control" name="schoolId" >
                                <option v-if="schoolId == ''" value="">---公用---</option>
                                <option v-for="(value, key) in schoolList" :key="key" :value="key">{{value}}</option>
                            </select>
                        </div>
                    </div>
                </div>

                <div style="text-align: center">
                    <a href="javascript:parent.layer.closeAll();" class="btn btn-default" style="width: 10%;">关 闭</a>
                    <button type="submit" class="btn btn-primary" style="width: 10%;" v-if="permission(0)" >保存</button>
                    <button type="submit" class="btn btn-primary" style="width: 10%;" v-else="permission(1)" >保存</button>
                </div>
            </form>
        </div>
    </div>
</div>
<script src="../../../../js/coupon-manage/integral/setting/edit.js"></script>
</body>
</html>
